package com.example.trackcircuitdiagnosis.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@Data
@TableName(value = "sys_log")
@Accessors(chain = true)
@Schema(name = "SysLog", description = "系统日志表")
public class SysLogEntity {
    private static final long serialVersionUID = 1L;

    @TableId()
    @Schema(description = "日志ID")
    private String id;//id

    @TableField("operationUser")
    @Schema(description = "操作人")
    private String operationUser;//操作人

    @TableField("path")
    @Schema(description = "请求路径")
    private String path;//请求路径

    @TableField("time")
    @Schema(description = "方法执行时间")
    private String time;//方法执行时间

    @TableField("parameter")
    @Schema(description = "方法入参")
    private String parameter;//方法入参

    @TableField("title")
    @Schema(description = "操作方法")
    private String title;//操作方法

    @TableField("action")
    @Schema(description = "方法描述")
    private String action;//方法描述

    @TableField("sysType")
    @Schema(description = "系统类型")
    private Integer sysType;//系统类型

    @TableField("opType")
    @Schema(description = "操作类型")
    private Integer opType;//操作类型

    public SysLogEntity(String operationUser, String path, String time,
                        String parameter, String title, String action, Integer sysType, Integer opType) {
        super();
        this.operationUser = operationUser;
        this.path = path;
        this.time = time;
        this.parameter = parameter;
        this.title = title;
        this.action = action;
        this.sysType = sysType;
        this.opType = opType;
    }
}
